<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>用户管理系统</title>
    <link rel="stylesheet" href="../public/bootstrap-5.3.0-alpha1-dist/css/bootstrap.min.css">
    <link rel="stylesheet" href="../font/bootstrap-icons.css">
    <style>
        body {
            background-color: #f8f9fa;
            padding-top: 20px;
            padding-bottom: 40px;
        }
        .card {
            border-radius: 10px;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            margin-bottom: 30px;
        }
        .card-header {
            border-radius: 10px 10px 0 0 !important;
            background-color: #f1f5f9;
        }
        .form-label {
            font-weight: 500;
            margin-bottom: 8px;
        }
        .text-success { color: #28a745 !important; }
        .text-danger { color: #dc3545 !important; }
        .input-group-text {
            cursor: pointer;
        }
        
        /* 密码强度气泡框样式 */
        .password-popover .popover-body {
            padding: 15px;
        }
        .password-popover ul {
            margin-bottom: 0;
        }
        .password-popover li {
            font-size: 0.85rem;
            margin-bottom: 0.35rem;
            display: flex;
            align-items: center;
        }
        .password-popover .bi {
            margin-right: 8px;
            font-size: 1rem;
        }
        .custom-popover {
            max-width: 350px;
        }
        .custom-popover .arrow::after {
            border-right-color: #f8f9fa !important;
        }
        .custom-popover .popover-header {
            background-color: #f8f9fa;
            border-bottom: 1px solid #e9ecef;
            font-weight: 600;
            font-size: 0.95rem;
        }
        
        /* 输入组样式优化 */
        .input-group .btn {
            border-left: 0;
            border-color: #ced4da;
        }
        .input-group input:focus + .btn {
            border-color: #86b7fe;
            box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
        }
        .toggle-password:hover {
            background-color: #e9ecef;
        }
        
        /* 步骤指示器样式 */
        .step-indicator {
            display: flex;
            justify-content: center;
            margin-bottom: 20px;
        }
        .step {
            display: flex;
            flex-direction: column;
            align-items: center;
            position: relative;
            flex: 1;
        }
        .step:not(:last-child):after {
            content: '';
            position: absolute;
            top: 15px;
            left: 60%;
            width: 80%;
            height: 2px;
            background-color: #dee2e6;
            z-index: 1;
        }
        .step-number {
            width: 30px;
            height: 30px;
            border-radius: 50%;
            background-color: #dee2e6;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 5px;
            z-index: 2;
            font-weight: bold;
        }
        .step.active .step-number {
            background-color: #0d6efd;
            color: white;
        }
        .step-label {
            font-size: 0.85rem;
            text-align: center;
        }
        
        @media (max-width: 768px) {
            .card {
                margin: 0 -15px;
                border-radius: 0;
            }
        }
    </style>
</head>
<body>
    <nav class="navbar navbar-expand-lg navbar-dark bg-dark">
        <div class="container">
            <a class="navbar-brand" href="profile.php">用户管理系统</a>
            <div class="collapse navbar-collapse">
                <?php if(isset($_SESSION['user_id'])): ?>
                    <div class="navbar-nav ms-auto">
                        <?php if($_SESSION['role'] === 'admin'): ?>
                            <!-- <a class="nav-link" href="admin/">Admin Panel</a> -->
                        <?php endif; ?>
                        <!-- <a class="nav-link" href="../change_password.php">修改密码</a> -->
                        <a class="nav-link" href="../logout.php">登出</a>
                    </div>
                <?php endif; ?>
            </div>
        </div>
    </nav>
    <div class="container mt-4">